function [ adjacency_matrix ] = random_connections( size, density )
%UNTITLED5 Summary of this function goes here
%   Detailed explanation goes here
conn = rand( size );
conn = floor( conn + density );
adjacency_matrix = triu(conn,1) + triu(conn,1)';

end

